Repository navigation
test: cover JSON retry success for provider assessments - #377
Merged
ashrafee-dev merged 1 commit intoNov 13, 2026
Merged
Conversation
Add roadmap provider test for malformed JSON followed by a valid assessment, asserting exactly two mocked provider calls. Fixes ashrafee-dev#200 Co-authored-by: Cursor <cursoragent@cursor.com>
|
@AryahCodes is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel. A member of the Team first needs to authorize it. |
3 tasks
Owner
|
Thanks for your contributions! @AryahCodes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add regression coverage for provider JSON recovery: first
ask_deepseekresponse is malformed JSON, second response is a complete assessment, andget_assessmentreturns the validated result after exactly two attempts.Issue
Fixes #200
Changes
tests/roadmap/provider/test_retry_success.pywith mockedask_deepseek(no live API calls).Verification
Commands run from repo root on 2026-11-11 (Python 3.13, uv 0.13.7):
AI assistance
I used Cursor and Claude Code to draft the test file and PR text. I ran every command above myself and reviewed the diff line by line before opening this PR, per CONTRIBUTING.md.